package com.csnf.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper {

    //生成订单
    @Insert("insert into tb_order(user_id,product_code,count,money) " +
             "values(#{userId},#{productCode},#{count},#{money})")
    public int addOrder(String userId,String productCode,int count,int money);

}
